﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CityLife.CityService;

namespace CityLife
{
	public partial class DiplomaticPanel : UserControl
	{
		public DiplomaticPanel()
		{
			// Required to initialize variables
			InitializeComponent();
            this.Loaded += new RoutedEventHandler(DiplomaticPanel_Loaded);

		}

        void DiplomaticPanel_Loaded(object sender, RoutedEventArgs e)
        {
            Neighbour n = DataContext as Neighbour;

            if (n.CityScore == 0)
            {
                UserPending.Visibility = Visibility.Visible;
                UserScores.Visibility = Visibility.Collapsed;

            }
            else
            {
                UserPending.Visibility = Visibility.Collapsed;
                UserScores.Visibility = Visibility.Visible;
            }
        }

        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

           

        }
	}
}